<div class="tableform">
      <table cellspacing="0" cellpadding="0" border="0" class="gridlist">
        <tr>
          <td>店铺</td>
          <td>发货单号</td>
          <td>订单号</td>
          <td>料号</td>
          <td>重量（发货单）</td>
          <td>应收运费</td>
          <td>应付运费</td>
          <td>数量</td>
          <td>调整应收</td>
          <td>调整应付</td>
          <td>调整重量</td>
          <td>调整数量</td>
        </tr>
    <{assign var="key" value="0"}>
      <{foreach from=$res item=his}>
    <{assign var="key" value=$key+1 }>
      <tbody>
        <tr>
          <td><{$his.shop_name}></td>
          <td><{$his.delivery_bn}></td>
          <td><{$his.order_bn}></td>
          <td><{$his.bnscontent}></td>
          <td><{$his.net_weight}></td>
          <td><{$his.lmfee}></td>
          <td><{$his.delivery_cost_actual}></td>
          <td><{$his.number}></td>
          <td><{$his.almfee}></td>
          <td><{$his.adelivery_cost_actual}></td>
          <td><{$his.anet_weight}></td>
          <td><{$his.anumber}></td>
        </tr>
        </tbody>
      <{/foreach}>
        <tr>
          <td>总数：</td>
          <td><{$key}></td>
        </tr>
      </table>
</div>